﻿#region
/* ===============================================
 * 作者：guopeng           时间：2012/2/2 19:35:26
 * 
 * 
 * 类描述：
 * 
 * 
 * =============================================== */
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Jobs.Inf.Entity
{
    /// <summary>
    /// 职位申请单
    /// </summary>
    [Table("RequestSheet")]
    public class RequestSheet
    {
        [Key]
        [Column("Id",TypeName="int")]
        [DatabaseGenerated(System.ComponentModel.DataAnnotations.DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 申请的职位Id
        /// </summary>
        [Column("RecruitId",TypeName="int")]
        [Required]
        public int RecruitId { get; set; }

        /// <summary>
        /// 简历Id.
        /// 会员可以主动维护一份简历，也可以直接投递简历，然后系统会自动生成一份简历
        /// 如果是非登录人员自动生成一份简历
        /// </summary>
        [Column("ResumeId",TypeName="int")]
        public int ResumeId { get; set; }


        /// <summary>
        /// 希望获得报酬
        /// </summary>
        [Column("Salary", TypeName = "decimal")]
        public decimal Salary { get; set; }

        /// <summary>
        /// 结算周期
        /// 0：小时 1：天 2：周 3：月
        /// </summary>
        [Column("Period", TypeName = "int")]
        public int Period { get; set; }

        /// <summary>
        /// 被选中
        /// </summary>
        [Column("Nod", TypeName = "bit")]
        public bool Nod { get; set; }

        /// <summary>
        /// 被放弃
        /// </summary>
        [Column("Kill", TypeName = "bit")]
        public bool Kill { get; set; }
    }
}
